<?php

class Control_Dropdownlist_Category extends Control_DropdownList
{
    function render()
    {
    	$id = $this->id();
    	$this->value = isset($_REQUEST[$id])? $_REQUEST[$id] : Category::rootNodeId();
    	$this->items = Category::renderedTree();
    	$this->non_htmlspecialchars = 1;
    	
    	return parent::render();
    }
}

?>